package com.xuecheng.teaching.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author itheima
 * @since 2022-08-13
 */
@Getter
@Setter
@TableName("tb_course_comment")
public class CourseComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long belongTo;

    private String comeFrom;

    private Integer commentId;

    /**
     * 评论时间
     */
    private String commentDate;


    /**
     * 评论内容

     */
    private String commentText;

    /**
     * 是否禁止回复 1禁止 0允许
     */
    private Integer forbidReply;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 点赞数量
     */
    private Integer praiseNum;

    /**
     * 用户评分0-5
     */
    private Integer starRank;

    /**
     * 评论对象id == course_pubid
     */
    private Integer targetId;

    /**
     * 评论对象名称
     */
    private String targetName;

    /**
     * 评论对象类型

     */
    private String targetType;

    /**
     * 用户头像(地址)
     */
    private String userHead;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户名
     */
    private String userName;


}
